package cn.aitrox.ry.service.config.dao;

import cn.aitrox.ry.common.dao.BaseDao;
import cn.aitrox.ry.service.config.entity.LesionEntity;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface LesionDao extends BaseDao<LesionEntity> {

    PageInfo<LesionEntity> search(Integer page, Integer pageSize, String likeName, List<String> valueList, Integer parentId);

    List<LesionEntity> findByParenIds(List<Integer> parentIds);

    void batchInsert(List<LesionEntity> list);

    List<LesionEntity> findByValues(List<String> valueList);

    void deleteByParentId(Integer parentId);

    LesionEntity findByParentIdName(Integer parentId, String name);

    List<LesionEntity> findByNames(List<String> nameList);
}
